const express = require("express")
const router = express.Router()

const HomeSection = require('../router_handler/home')

// 进行获取首页轮播图
router.get('/home/image',HomeSection.homeImage)

//美食精推
router.get('/home/recommend',HomeSection.recommend)

// 获取省份
router.get('/home/province',HomeSection.province)

// 获取省份下的市
router.get('/home/market',HomeSection.market)

// 获取所有省份的市
router.get('/home/AllMarket',HomeSection.AllMarket)

// 获取区域
router.get('/home/region',HomeSection.region)

// 获取市所有的美景数据
router.get('/home/view',HomeSection.view)

// 根据区域和月份获取美景数据
router.get('/home/landscape',HomeSection.landscape)

// 向外暴露
module.exports = router